package com.poisonh.unifiedauth.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.poisonh.unifiedauth.R;
import com.poisonh.unifiedauth.utils.ConstantUitls;

/**
 * 更改邮箱
 * Created by PoisonH on 2016/8/29.
 */
public class ChangeEmailActivity extends BaseActivity implements View.OnClickListener
{
    private Button mBtnChangeEmail;
    private TextView mTvOldEmail;

    @Override
    protected void loadContentView(Bundle savedInstanceState)
    {
        setContentView(R.layout.activity_showoldemail);
        initTitleView();
        initView();
    }

    @Override
    protected void initView()
    {
        setTitleTxt("更换邮箱");
        mRightBtn.setVisibility(View.GONE);
        mLeftBtn.setOnClickListener(this);
        mBtnChangeEmail = (Button) findViewById(R.id.changeemail_sure);
        mTvOldEmail = (TextView) findViewById(R.id.tv_showoldemaile);
        mTvOldEmail.setText(mStrUserEmail);
        mBtnChangeEmail.setOnClickListener(this);

    }

    @Override
    public void onClick(View v)
    {
        switch (v.getId())
        {
            case R.id.ib_left_btn:
                finish();
                break;
            case R.id.changeemail_sure:
                Intent mIntent = new Intent(ChangeEmailActivity.this, InputEmailActivity.class);
                mIntent.putExtra("CHANGE_EMAIL", "Y");
                startActivity(mIntent);
                finish();
                break;

        }
    }
}
